/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * <p>Project: javase - List4
 * <p>Powered by webrx On 2021-12-09 09:05:46
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class List4 {
    public static void main(String[] args) {
        List list = List.of(1, 2, 3);
        //list.add(6);
        //list.remove(0);
        //list.clear();
        System.out.println(list);

        List listok = new ArrayList(list);
        listok.remove(Integer.valueOf(2));
        System.out.println(listok);

        int[] nums = {11, 22, 33};
        Integer[] nn = {111, 222, 333};
        List<Integer> list2 = Arrays.asList(nn);
        List list3 = Arrays.asList(nums);

        System.out.println(list2);
        System.out.println(list3);

        List nnn = new ArrayList(List.of(10, 20, 30, 40));
        System.out.println(nnn);


    }
}
